import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import BaiduMap, { BmlMarkerClusterer } from 'vue-baidu-map'
import {
  Button,
  Icon,
  Tabbar,
  TabbarItem,
  NavBar,
  Form,
  Field,
  Toast,
  Image as VanImage,
  Grid,
  GridItem,
  Swipe,
  SwipeItem,
  List,
  Lazyload,
  Search,
  IndexBar,
  IndexAnchor,
  AddressEdit,
  Popup,
  Uploader,
  Dialog,
  Cell,
  Cascader,
  Picker,
  DropdownMenu,
  DropdownItem,
} from "vant";
Vue.component('bml-marker-cluster', BmlMarkerClusterer)
Vue.use(BaiduMap, {
  // ak 是在百度地图开发者平台申请的密钥 详见 http://lbsyun.baidu.com/apiconsole/key */
  ak: 'ob8G2QPWHOAqtUfiimjG3Vh3CGN7wu9z'
})

Vue.use(DropdownMenu);
Vue.use(DropdownItem);

Vue.use(Picker);
Vue.use(Form);
Vue.use(Field);
Vue.use(Cascader);
Vue.use(Dialog);
Vue.use(Uploader);
Vue.use(Popup);
Vue.use(AddressEdit);
Vue.use(IndexBar);
Vue.use(IndexAnchor);
Vue.use(Search);
Vue.use(Lazyload);
Vue.use(List);
Vue.use(Swipe);
Vue.use(SwipeItem);
Vue.use(Grid);
Vue.use(GridItem);
Vue.use(VanImage);
Vue.use(Toast);
Vue.use(Button);
Vue.use(Icon);
Vue.use(Tabbar);
Vue.use(TabbarItem);
Vue.use(NavBar);
Vue.use(Form);
Vue.use(Field);
Vue.use(Cell);
Vue.config.productionTip = false;

new Vue({
  router,
  render: (h) => h(App),
}).$mount("#app");
